package com.study.flink.java.day04_async;

public class ActivityBean {

    public String uid;
    public String aid;
    public String activityName;
    public String time;
    public int eventType;
    public String province;
    public String balance;
    public int count = 1;

    public ActivityBean(){}

    public ActivityBean(String uid, String aid, String activityName, String time, int eventType, String province) {
        this.uid = uid;
        this.aid = aid;
        this.activityName = activityName;
        this.time = time;
        this.eventType = eventType;
        this.province = province;
    }

    public ActivityBean(String uid, String aid, String activityName, String time, int eventType, String province, String balance) {
        this.uid = uid;
        this.aid = aid;
        this.activityName = activityName;
        this.time = time;
        this.eventType = eventType;
        this.province = province;
        this.balance = balance;
    }

    public static ActivityBean of(String uid, String aid, String activityName, String time, int eventType, String province){
        return new ActivityBean(uid, aid, activityName, time, eventType, province);
    }

    public static ActivityBean of(String uid, String aid, String activityName, String time, int eventType, String province, String balance){
        return new ActivityBean(uid, aid, activityName, time, eventType, province, balance);
    }

    @Override
    public String toString() {
        return "ActivityBean{" +
                "uid='" + uid + '\'' +
                ", aid='" + aid + '\'' +
                ", activityName='" + activityName + '\'' +
                ", time='" + time + '\'' +
                ", eventType=" + eventType +
                ", province='" + province + '\'' +
                ", balance='" + balance + '\'' +
                ", count=" + count +
                '}';
    }
}
